public class Main {
    public static void main(String[] args) {
        // 创建对象
        Teacher t1 = new Teacher("T001","张老师","男");
        Teacher t2 = new Teacher("T002","王老师","女");

        Course c1 = new Course("C001","Java程序设计","教101", "周四 8:00-9:40", 2.0, 60, t1);
        Course c2 = new Course("C002","高等数学","教102", "周三 8:00-9:40", 4.0, 80, t2);

        Student s1 = new Student("S001","张三","女",null);
        Student s2 = new Student("S002","李四","男",null);

        // 打印信息
        System.out.println("=== 教师信息 ===");
        t1.showTeacherInfo();
        t2.showTeacherInfo();

        System.out.println("=== 课程信息 ===");
        c1.showCourseInfo();
        c2.showCourseInfo();

        System.out.println("=== 学生选课 ===");
        s1.selectCourse(c1);
        s2.selectCourse(c2);

        System.out.println("=== 学生课表 ===");
        s1.showSchedule();
        s2.showSchedule();

        System.out.println("=== 学生退课 ===");
        s1.dropCourse();
        s1.showSchedule();
    }
}
